Browse Source

Remove automaticallyMergesChangesFromParent from background context method

Marvin Polscheit 1 month ago
parent
commit
c753e7173c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Model/CoreDataStack.swift

+ 0 - 2
Model/CoreDataStack.swift

@@ -103,8 +103,6 @@ class CoreDataStack: ObservableObject {
         /// - Tag: newBackgroundContext
         let taskContext = persistentContainer.newBackgroundContext()
 
-        /// ensure that the background contexts stay in sync with the main context
-        taskContext.automaticallyMergesChangesFromParent = true
         taskContext.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy
         taskContext.undoManager = nil
         return taskContext